package com.example.consumer.controller;

import com.example.consumer.service.IdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author : 林顺
 * @date : 2022/8/10
 */
@RestController
public class IdTestController {

    @Autowired
    private IdService idService;

    @PostMapping("id")
    public int addId(){
        return 1;
    }

    @GetMapping("id")
    public String getId(){
        return idService.addId();
    }

    @PutMapping("id")
    public int updateId(){
        return 1;
    }

    @DeleteMapping("id")
    public int deleteId(){
        return 1;
    }

}
